package com.vdg.fps.data;

import android.util.Log;

public class FaceBookCookie {
	private String mMUser;
	private String mFR;
	private String mCuser;
	private String mXS;
	private String mCSM;
	private String mLU;
	private String mS;
	private String mDatr;
	private String mCookieString;

	public FaceBookCookie(String cookie) {
		setCookieString(cookie);
		if (cookie != null) {
			String[] cookieArr = cookie.split(";");
			for (String element : cookieArr) {
				String[] elementArr = element.split("=");
				if (elementArr.length == 2) {
					if (elementArr[0].equals("m_user")) {
						mMUser = elementArr[1];
					}
					if (elementArr[0].equals("fr")) {
						mFR = elementArr[1];
					}
					if (elementArr[0].equals("c_user")) {
						mCuser = elementArr[1];
					}
					if (elementArr[0].equals("xs")) {
						mXS = elementArr[1];
					}
					if (elementArr[0].equals("csm")) {
						mCSM = elementArr[1];
					}
					if (elementArr[0].equals("lu")) {
						mLU = elementArr[1];
					}
					if (elementArr[0].equals("s")) {
						mS = elementArr[1];
					}
					if (elementArr[0].equals("datr")) {
						mDatr = elementArr[1];
					}
				}
			}
		}
	}

	public String getMUser() {
		return mMUser;
	}

	public void setMUser(String mMUser) {
		this.mMUser = mMUser;
	}

	public String getFR() {
		return mFR;
	}

	public void setFR(String mFR) {
		this.mFR = mFR;
	}

	public String getCuser() {
		return mCuser;
	}

	public void setCuser(String mCuser) {
		this.mCuser = mCuser;
	}

	public String getXS() {
		return mXS;
	}

	public void setXS(String mXS) {
		this.mXS = mXS;
	}

	public String getCSM() {
		return mCSM;
	}

	public void setCSM(String mCSM) {
		this.mCSM = mCSM;
	}

	public String getLU() {
		return mLU;
	}

	public void setLU(String mLU) {
		this.mLU = mLU;
	}

	public String getS() {
		return mS;
	}

	public void setS(String mS) {
		this.mS = mS;
	}

	public String getDatr() {
		return mDatr;
	}

	public void setDatr(String mDatr) {
		this.mDatr = mDatr;
	}

	public String getCookieString() {
		Log.v("debug", "cookie = " + mCookieString);
		return mCookieString;
	}

	public void setCookieString(String mCookieString) {
		this.mCookieString = mCookieString;
	}
}
